// src/APP.vue

<template>
<input type="text" v-model="obj.name">
</template>

<script lang="ts">
import {  defineComponent, reactive, watchEffect,  } from 'vue'

export default defineComponent({
  name: 'APP',
  setup() {
    let obj = reactive({
      name:'zs'
    });
    watchEffect(() => {
      console.log('name:',obj.name)
    })

    return {
      obj
    }
  }
})
</script>